package com.jarvis.order.feign;

import com.jarvis.order.vo.ProductVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(value = "jarvis-product",url ="localhost:12000")
public interface ProductFeignService {

    @RequestMapping("/order/{productId}")
    ProductVo getProductEntity(@PathVariable("productId") long productId);

}
